__import__('app.config')

from fastapi import FastAPI

from app.auth.middlewares import refresh_token_silently
from app.auth.routers import router as auth_router
from app.core.middlewares import add_request_context

boot = FastAPI()

boot.middleware("http")(add_request_context)
boot.middleware("http")(refresh_token_silently)
boot.include_router(auth_router, prefix="/auth", tags=["auth"])


@boot.get("/")
async def read_root():
    return {"Hello": "World"}
